import sys

def main():
    """
    启动 Panoramic Surveillance System GUI。
    若依赖缺失则提示安装，并退出程序。
    """
    print("Starting Panoramic Surveillance System GUI...")
    try:
        from v1 import PanoramicSurveillanceGUI
        app = PanoramicSurveillanceGUI()
        app.run()

    except ImportError as e:
        print(f"Import error: {e}")
        print("请确保所有依赖库已安装。")
        print("运行: pip install -r requirements.txt")
        sys.exit(1)
    except Exception as e:
        print(f"运行错误: {e}")
        sys.exit(1)

    print("\nGUI application closed.")

if __name__ == "__main__":
    main()